package com.mybatisplus.mp;

import com.mybatisplus.mp.service.UserService;
import com.mybatisplus.mp.service.UserService2;
import lombok.Builder;
import lombok.Data;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class Mytest {
    @Autowired
    private UserService userService;
    @Autowired
    private UserService2 userService2;

    @Test
    public void test() {
        userService.testA();
//        userService.testB();
    }

    @Test
    public void test1() {

    }
}
@Data

class Father {
    String name;
    int age;

    public void f() {
        System.out.println("父类");
    }
}
@Data
@Builder
class Son extends Father {
    @Override
    public void f() {
        System.out.println("子类");
    }

    public static void main(String[] args) {
        Father f = new Son();
        Son s=new Son();
        int age = s.age;
        f.f();
    }

}


